Skip to main content

Interface: TransceiverInit

Properties

allowAutoChangeOfDirection

Optional allowAutoChangeOfDirection: boolean


content

Optional content: string

Content Attributes

See

https://www.rfc-editor.org/rfc/rfc4796#section-5

Default Value

'main'


direction

Optional direction: MediaDirection

Can be any of these sendrecv, sendonly, recvonly and inactive

Default Value

'sendrecv'


kindOrTrack

kindOrTrack: "audio" | "video" | MediaStreamTrack

Either audio or video


relativeDirection

Optional relativeDirection: boolean


sendEncodings

Optional sendEncodings: MediaEncodingParameters[]

A list of RTCRtpEncodingParameters objects, each specifying the parameters for a single codec that could be used to encode the track's media


streams

Optional streams: MediaStream[]

A list of MediaStream objects to add to the transceiver's RTCRtpReceiver


transceiver

Optional transceiver: RTCRtpTransceiver